home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / x11 / config / sv4Lib.tmpl < prev   
Text File  |  1997-08-26  |  6KB  |  235 lines

  1. XCOMM $XConsortium: sv4Lib.tmpl,v 1.6 92/01/25 16:46:55 rws Exp $
  2.  
  3. #ifndef ProfileLibDtWidget
  4. #define ProfileLibDtWidget    NO
  5. #endif
  6. #ifndef ProfileLibXol
  7. #define ProfileLibXol        NO
  8. #endif
  9. #ifndef ProfileLibDnD
  10. #define ProfileLibDnD        NO
  11. #endif
  12. #ifndef ProfileLibDt
  13. #define ProfileLibDt        NO
  14. #endif
  15. #ifndef ProfileLibDtI
  16. #define ProfileLibDtI        NO
  17. #endif
  18. #ifndef ProfileLibGizmo
  19. #define ProfileLibGizmo        NO
  20. #endif
  21. #ifndef SharedLibDtWidget
  22. #define SharedLibDtWidget HasSharedLibraries
  23. #endif
  24. #ifndef NormalLibDtWidget
  25. #define NormalLibDtWidget ( !SharedLibDtWidget | ForceNormalLib )
  26. #endif
  27. #ifndef SharedLibXol
  28. #define SharedLibXol HasSharedLibraries
  29. #endif
  30. #ifndef NormalLibXol
  31. #define NormalLibXol (!SharedLibXol | ForceNormalLib)
  32. #endif
  33. #ifndef SharedLibDnD
  34. #define SharedLibDnD HasSharedLibraries
  35. #endif
  36. #ifndef NormalLibDnD
  37. #define NormalLibDnD (!SharedLibDnD | ForceNormalLib)
  38. #endif
  39. #ifndef SharedLibDt
  40. #define SharedLibDt HasSharedLibraries
  41. #endif
  42. #ifndef NormalLibDt
  43. #define NormalLibDt (!SharedLibDt | ForceNormalLib)
  44. #endif
  45. #ifndef SharedLibDtI
  46. #define SharedLibDtI HasSharedLibraries
  47. #endif
  48. #ifndef NormalLibDtI
  49. #define NormalLibDtI    NO    /* archive for internal lib not needed */
  50. #endif
  51. #ifndef SharedLibGizmo
  52. #define SharedLibGizmo HasSharedLibraries
  53. #endif
  54. #ifndef NormalLibGizmo
  55. #define NormalLibGizmo    NO    /* archive for internal lib not needed */
  56. #endif
  57.  
  58. XCOMM
  59. XCOMM Leave the USL numbers to 1 - there are no compatability changes
  60. XCOMM between the first release of SVR4.2 and the second release
  61. XCOMM Also, cannot use ?.0 numbering, because it will be more than 14 chars
  62. XCOMM which will break SYSV file systems.
  63. XCOMM
  64. #ifndef SharedDtWidgetRev
  65. #define SharedDtWidgetRev 1
  66. #endif
  67. #ifndef SharedXolRev
  68. #define SharedXolRev 1
  69. #endif
  70. #ifndef SharedOlitRev
  71. #define SharedOlitRev 1
  72. #endif
  73. #ifndef SharedOlitMRev
  74. #define SharedOlitMRev 1
  75. #endif
  76. #ifndef SharedOlitORev
  77. #define SharedOlitORev 1
  78. #endif
  79. #ifndef SharedDtRev
  80. #define SharedDtRev 1
  81. #endif
  82. #ifndef SharedFontLibRev
  83. #define SharedFontLibRev 1
  84. #endif
  85. #ifndef SharedGizmoLibRev
  86. #define SharedGizmoLibRev 1
  87. #endif
  88. #ifndef SharedDtILibRev
  89. #define SharedDtILibRev 1
  90. #endif
  91.  
  92.     SODTWIDGETREV = SharedDtWidgetRev
  93.          SOXOLREV = SharedXolRev
  94.         SOOLITREV = SharedOlitRev
  95.        SOOLITMREV = SharedOlitMRev
  96.        SOOLITOREV = SharedOlitORev
  97.           SODTREV = SharedDtRev
  98.      SOFONTLIBREV = SharedFontLibRev
  99.        SOGIZMOREV = SharedGizmoLibRev
  100.          SODTIREV = SharedDtILibRev
  101.  
  102. /*
  103.  * SVR4 shared library template
  104.  */
  105.  
  106. #ifndef SharedXlibRev
  107. #define SharedXlibRev 5.0
  108. #endif
  109. #ifndef SharedOldXRev
  110. #define SharedOldXRev 5.0
  111. #endif
  112. #ifndef SharedXtRev
  113. #define SharedXtRev 5.0
  114. #endif
  115. #ifndef SharedXawRev
  116. #define SharedXawRev 5.0
  117. #endif
  118. #ifndef SharedXmuRev
  119. #define SharedXmuRev 5.0
  120. #endif
  121. #ifndef SharedXextRev
  122. #define SharedXextRev 5.0
  123. #endif
  124. #ifndef SharedXinputRev
  125. #define SharedXinputRev 5.0
  126. #endif
  127. #ifndef SharedXTrapRev
  128. #define SharedXTrapRev 5.0
  129. #endif
  130. #ifndef SharedXTestRev
  131. #define SharedXTestRev 5.0
  132. #endif
  133.  
  134. SHLIBLDFLAGS = SharedLibraryLoadFlags
  135. PICFLAGS = PositionIndependentCFlags
  136.  
  137. /*
  138.  * and now a little bit of magic for using imake without source tree; if we
  139.  * are using shared libraries, we really do not need to depend on anything
  140.  */
  141. #if SharedLibXext
  142.   DEPEXTENSIONLIB = /* _UseCat($(USRLIBDIR),$(EXTENSIONSRC)/lib,/libXext.so.$(SOXEXTREV)) */
  143.      EXTENSIONLIB = _Use(-lXext,-L$(EXTENSIONSRC)/lib -lXext)
  144. #endif
  145. #if SharedLibX
  146.           DEPXLIB = $(DEPEXTENSIONLIB) /* _UseCat($(USRLIBDIR),$(XLIBSRC),/libX11.so.$(SOXLIBREV)) */
  147.              XLIB = $(EXTENSIONLIB) _Use(-lX11,-L$(XLIBSRC) -lX11)
  148. #endif
  149. #if SharedLibXmu
  150.         DEPXMULIB = /* _UseCat($(USRLIBDIR),$(XMUSRC),/libXmu.so.$(SOXMUREV)) */
  151.            XMULIB = _Use(-lXmu,-L$(XMUSRC) -lXmu)
  152.  
  153. #ifndef XawClientLibs
  154. #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  155. #endif
  156. #endif
  157. #if SharedOldLibX
  158.        DEPOLDXLIB = /* _UseCat($(USRLIBDIR),$(OLDXLIBSRC),/liboldX.so.$(SOOLDXREV)) */
  159.           OLDXLIB = _Use(-loldX,-L$(OLDXLIBSRC) -loldX)
  160. #endif
  161. #if SharedLibXt
  162.       DEPXTOOLLIB = /* _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXt.so.$(SOXTREV)) */
  163.          XTOOLLIB = _Use(-lXt,-L$(TOOLKITSRC) -lXt)
  164. #endif
  165. #if SharedLibDtWidget
  166.       DEPDTWIDGETLIB = /* _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libDtWidget.so.$(SOXTREV)) */
  167.          DTWIDDGETLIB = _Use(-lDtWidget,-L$(TOOLKITSRC) -lDtWidget)
  168. #endif
  169. #if SharedLibXol
  170. DEPXOLCOMPATLIB = _UseCat($(USRLIBDIR),$(XOLSRC),/libXol.so.$(SOXOLREV))
  171.       DEPXOLLIB = _UseCat($(USRLIBDIR),$(XOLSRC),/libOlit.so.$(SOXOLREV))
  172.          XOLLIB = _Use(-lOlit,-L$(XOLSRC) -lOlit)
  173. #endif
  174. #if SharedLibXaw
  175.         DEPXAWLIB = /* _UseCat($(USRLIBDIR),$(AWIDGETSRC),/libXaw.so.$(SOXAWREV)) */
  176.            XAWLIB = _Use(-lXaw,-L$(AWIDGETSRC) -lXaw)
  177. #endif
  178. #if SharedLibXinput
  179.         DEPXILIB = /* _UseCat($(USRLIBDIR),$(XILIBSRC),/libXi.so.$(SOXINPUTREV)) */
  180.            XILIB = _Use(-lXi,-L$(XILIBSRC) -lXi)
  181. #endif
  182. #if SharedLibXTest
  183.         DEPXTESTLIB = /* _UseCat($(USRLIBDIR),$(XTESTLIBSRC),/libXtst.so.$(SOXTESTREV)) */
  184.            XTESTLIB = _Use(-lXtst,-L$(XTESTLIBSRC) -lXtst)
  185. #endif
  186.  
  187. XCOMM 
  188. XCOMM USL: BEGIN
  189. XCOMM
  190.  
  191. #ifndef SharedLibXol
  192.       DEPXTOOLLIB = _UseCat($(USRLIBDIR),$(TOOLKITSRC),/libXol.a)
  193.          XTOOLLIB = LoaderLibPrefix _Use(-lXol,$(DEPXTOOLLIB))
  194. #endif
  195. #ifndef XolClientDepLibs
  196. #define XolClientDepLibs $(DEPXOLLIB) $(DEPXTOOLLIB) $(DEPXMULIB) $(DEPXLIB)
  197. #endif
  198. #ifndef XolClientLibs
  199. #ifdef I18NDefines
  200. #define XolClientLibs $(XOLLIB) $(XTOOLLIB) $(XMULIB) $(XLIB)
  201. #else
  202. #define XolClientLibs $(XOLLIB) $(XTOOLLIB) $(XMULIB) $(XLIB)
  203. #endif
  204. #endif
  205.  
  206. #ifndef XolCompatClientDepLibs
  207. #define XolCompatClientDepLibs $(DEPXOLLIB) $(DEPXOLCOMPATLIB) $(DEPXTOOLLIB) $(DEPXMULIB) $(DEPXLIB)
  208. #endif
  209. #ifndef XolCompatClientLibs
  210. #ifdef I18NDefines
  211. #define XolCompatClientLibs $(XOLLIB) -lXol $(XTOOLLIB) $(XMULIB) $(XLIB)
  212. #else
  213. #define XolCompatClientLibs $(XOLLIB) -lXol $(XTOOLLIB) $(XMULIB) $(XLIB)
  214. #endif
  215. #endif
  216.  
  217.   /*
  218.    * If you will be building static shared libs with XLIB in a source
  219.    * tree referenced by an absolute $(TOP), you will have to 
  220.    * set XHOSTLOC to XLIBSRC in your Imakefile.  Since mkshlib is run
  221.    * in a 'shared' subdirectory, it can't find a relative $(TOP) from
  222.    * there.
  223.    */
  224.  
  225. #ifndef ShLibFlags
  226. #define ShLibFlags
  227. #endif
  228.  
  229. XHOSTLOC = _Use($(DESTDIR)/$(LIBDIR),../../X)
  230. SHLIBFLAGS = ShLibFlags -L $(XHOSTLOC)
  231.  
  232. XCOMM 
  233. XCOMM USL: END
  234. XCOMM
  235.